package com.explment.lens.controller.file;

import com.explment.lens.entity.SysFileBusinessEntity;
import com.explment.lens.service.SysFileBusinessService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 业务关联的文件 controller
 */
@RestController
@RequestMapping("/sysFileBusinessEntity")
public class SysFileBusinessController {
    @Autowired
    private SysFileBusinessService sysFileBusinessEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysFileBusinessEntityService.getById(id));
    }
}